package com.epoint.mobileoa.personalized.epointcompany.bizlogic;

import java.util.HashMap;

import android.os.Message;

import com.epoint.mobileoa.R;
import com.epoint.mobileoa.bizlogic.SuperView;
import com.epoint.mobileoa.bizlogic.Task;
import com.epoint.mobileoa.tools.WebServiceUtilDAL;

/**
 * @author liyc
 * @time 2012-5-4 上午9:28:32
 * @annotation 
 */
public class SummitRizhiTask extends Task {

	/**
	 * @param con
	 * @param param
	 */
	public SummitRizhiTask(SuperView con, HashMap<String, Object> param) {
		super(con, param);
	}

	@Override
	public void exectue(Message mess) throws Exception {
		String rzguid = getParam().get("rzguid").toString();
		String rzdate = getParam().get("rzdate").toString();
		
		String url = getCon().getString(R.string.epointcompany_rizhi_url);
		String namespace = getCon().getString(R.string.epointcompany_rizhi_namespace);
		String method = "BtnSubmitRZ";
		WebServiceUtilDAL webservice = new WebServiceUtilDAL(url,
				method, namespace);
		webservice.addProperty("RZRowGuid", rzguid);
		webservice.addProperty("RZDate", rzdate.substring(0, 10));
		webservice.addProperty("UserGuid", getFP().getUserguid());
		webservice.addProperty("UserName", getFP().getDisplayname());
		String bs = webservice.start();
		setMessageToRefreshUI(mess, getCon(), bs);
	}

}
